package com.dj.merchant.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MartBunkExample {
    /**
     * mart_bunk
     */
    protected String orderByClause;

    /**
     * mart_bunk
     */
    protected boolean distinct;

    /**
     * mart_bunk
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * 
     */
    public MartBunkExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * 
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * 
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * 
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * 
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * 
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * 
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * 
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * 
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * 
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * 
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * mart_bunk 2020-12-09
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMartBunkIdIsNull() {
            addCriterion("mart_bunk_id is null");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdIsNotNull() {
            addCriterion("mart_bunk_id is not null");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdEqualTo(Integer value) {
            addCriterion("mart_bunk_id =", value, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdNotEqualTo(Integer value) {
            addCriterion("mart_bunk_id <>", value, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdGreaterThan(Integer value) {
            addCriterion("mart_bunk_id >", value, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mart_bunk_id >=", value, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdLessThan(Integer value) {
            addCriterion("mart_bunk_id <", value, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdLessThanOrEqualTo(Integer value) {
            addCriterion("mart_bunk_id <=", value, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdIn(List<Integer> values) {
            addCriterion("mart_bunk_id in", values, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdNotIn(List<Integer> values) {
            addCriterion("mart_bunk_id not in", values, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdBetween(Integer value1, Integer value2) {
            addCriterion("mart_bunk_id between", value1, value2, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartBunkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mart_bunk_id not between", value1, value2, "martBunkId");
            return (Criteria) this;
        }

        public Criteria andMartIdIsNull() {
            addCriterion("mart_id is null");
            return (Criteria) this;
        }

        public Criteria andMartIdIsNotNull() {
            addCriterion("mart_id is not null");
            return (Criteria) this;
        }

        public Criteria andMartIdEqualTo(Integer value) {
            addCriterion("mart_id =", value, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdNotEqualTo(Integer value) {
            addCriterion("mart_id <>", value, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdGreaterThan(Integer value) {
            addCriterion("mart_id >", value, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mart_id >=", value, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdLessThan(Integer value) {
            addCriterion("mart_id <", value, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdLessThanOrEqualTo(Integer value) {
            addCriterion("mart_id <=", value, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdIn(List<Integer> values) {
            addCriterion("mart_id in", values, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdNotIn(List<Integer> values) {
            addCriterion("mart_id not in", values, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdBetween(Integer value1, Integer value2) {
            addCriterion("mart_id between", value1, value2, "martId");
            return (Criteria) this;
        }

        public Criteria andMartIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mart_id not between", value1, value2, "martId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdIsNull() {
            addCriterion("mart_building_id is null");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdIsNotNull() {
            addCriterion("mart_building_id is not null");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdEqualTo(Integer value) {
            addCriterion("mart_building_id =", value, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdNotEqualTo(Integer value) {
            addCriterion("mart_building_id <>", value, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdGreaterThan(Integer value) {
            addCriterion("mart_building_id >", value, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mart_building_id >=", value, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdLessThan(Integer value) {
            addCriterion("mart_building_id <", value, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdLessThanOrEqualTo(Integer value) {
            addCriterion("mart_building_id <=", value, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdIn(List<Integer> values) {
            addCriterion("mart_building_id in", values, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdNotIn(List<Integer> values) {
            addCriterion("mart_building_id not in", values, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdBetween(Integer value1, Integer value2) {
            addCriterion("mart_building_id between", value1, value2, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartBuildingIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mart_building_id not between", value1, value2, "martBuildingId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdIsNull() {
            addCriterion("mart_floor_id is null");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdIsNotNull() {
            addCriterion("mart_floor_id is not null");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdEqualTo(Integer value) {
            addCriterion("mart_floor_id =", value, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdNotEqualTo(Integer value) {
            addCriterion("mart_floor_id <>", value, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdGreaterThan(Integer value) {
            addCriterion("mart_floor_id >", value, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mart_floor_id >=", value, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdLessThan(Integer value) {
            addCriterion("mart_floor_id <", value, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdLessThanOrEqualTo(Integer value) {
            addCriterion("mart_floor_id <=", value, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdIn(List<Integer> values) {
            addCriterion("mart_floor_id in", values, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdNotIn(List<Integer> values) {
            addCriterion("mart_floor_id not in", values, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdBetween(Integer value1, Integer value2) {
            addCriterion("mart_floor_id between", value1, value2, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andMartFloorIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mart_floor_id not between", value1, value2, "martFloorId");
            return (Criteria) this;
        }

        public Criteria andBunkNameIsNull() {
            addCriterion("bunk_name is null");
            return (Criteria) this;
        }

        public Criteria andBunkNameIsNotNull() {
            addCriterion("bunk_name is not null");
            return (Criteria) this;
        }

        public Criteria andBunkNameEqualTo(String value) {
            addCriterion("bunk_name =", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameNotEqualTo(String value) {
            addCriterion("bunk_name <>", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameGreaterThan(String value) {
            addCriterion("bunk_name >", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameGreaterThanOrEqualTo(String value) {
            addCriterion("bunk_name >=", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameLessThan(String value) {
            addCriterion("bunk_name <", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameLessThanOrEqualTo(String value) {
            addCriterion("bunk_name <=", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameLike(String value) {
            addCriterion("bunk_name like", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameNotLike(String value) {
            addCriterion("bunk_name not like", value, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameIn(List<String> values) {
            addCriterion("bunk_name in", values, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameNotIn(List<String> values) {
            addCriterion("bunk_name not in", values, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameBetween(String value1, String value2) {
            addCriterion("bunk_name between", value1, value2, "bunkName");
            return (Criteria) this;
        }

        public Criteria andBunkNameNotBetween(String value1, String value2) {
            addCriterion("bunk_name not between", value1, value2, "bunkName");
            return (Criteria) this;
        }

        public Criteria andActiveStatusIsNull() {
            addCriterion("active_status is null");
            return (Criteria) this;
        }

        public Criteria andActiveStatusIsNotNull() {
            addCriterion("active_status is not null");
            return (Criteria) this;
        }

        public Criteria andActiveStatusEqualTo(Boolean value) {
            addCriterion("active_status =", value, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusNotEqualTo(Boolean value) {
            addCriterion("active_status <>", value, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusGreaterThan(Boolean value) {
            addCriterion("active_status >", value, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("active_status >=", value, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusLessThan(Boolean value) {
            addCriterion("active_status <", value, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("active_status <=", value, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusIn(List<Boolean> values) {
            addCriterion("active_status in", values, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusNotIn(List<Boolean> values) {
            addCriterion("active_status not in", values, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("active_status between", value1, value2, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andActiveStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("active_status not between", value1, value2, "activeStatus");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("create_user is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("create_user is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("create_user =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("create_user <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("create_user >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("create_user >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("create_user <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("create_user <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("create_user like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("create_user not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("create_user in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("create_user not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("create_user between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("create_user not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("update_user is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("update_user is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("update_user =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("update_user <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("update_user >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("update_user >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("update_user <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("update_user <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("update_user like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("update_user not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("update_user in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("update_user not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("update_user between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("update_user not between", value1, value2, "updateUser");
            return (Criteria) this;
        }
    }

    /**
     * mart_bunk
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * mart_bunk 2020-12-09
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}